<html>
<head><meta charset="utf-8"><title>vec![const_foo()] · t-compiler/const-eval · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/index.html">t-compiler/const-eval</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html">vec![const_foo()]</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199510859"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199510859" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Avi Dessauer <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199510859">(Jun 02 2020 at 15:35)</a>:</h4>
<p>Is there  any hope of <code>vec![const_foo()]</code> becoming <code>const</code>?</p>



<a name="199513698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513698">(Jun 02 2020 at 15:56)</a>:</h4>
<p>TLDR: yes</p>



<a name="199513716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513716">(Jun 02 2020 at 15:57)</a>:</h4>
<p>do you want the "too long"? :D</p>



<a name="199513731"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513731" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513731">(Jun 02 2020 at 15:57)</a>:</h4>
<p>i do :P</p>



<a name="199513786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513786">(Jun 02 2020 at 15:57)</a>:</h4>
<p><a href="https://github.com/rust-lang/const-eval/issues/20">https://github.com/rust-lang/const-eval/issues/20</a></p>



<a name="199513875"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513875" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513875">(Jun 02 2020 at 15:58)</a>:</h4>
<p>and <a href="https://github.com/rust-lang/rfcs/pull/2632">https://github.com/rust-lang/rfcs/pull/2632</a></p>



<a name="199513922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513922">(Jun 02 2020 at 15:58)</a>:</h4>
<p>heap allocations at compile time are... fun</p>



<a name="199513965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/vec%21%5Bconst_foo%28%29%5D/near/199513965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/vec!.5Bconst_foo().5D.html#199513965">(Jun 02 2020 at 15:58)</a>:</h4>
<p>and anything vector related needs trait method calls (which are actually partially working on nightly with feature gates)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>